package com.cuhk.gulimall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cuhk.common.utils.PageUtils;
import com.cuhk.gulimall.ware.entity.PurchaseEntity;
import com.cuhk.gulimall.ware.vo.MergeVo;
import com.cuhk.gulimall.ware.vo.PurchaseFinishVo;

import java.util.List;
import java.util.Map;

/**
 * 采购信息
 *
 * @author chenyujing
 * @email torchsam@aliyun.com
 * @date 2024-06-10 14:49:06
 */
public interface PurchaseService extends IService<PurchaseEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPageUnReceived(Map<String, Object> params);

    // void mergePurchase(MergeVo mergeVo);
    Map<String, Object> mergePurchase(MergeVo mergeVo);

    // 领取采购单方法
    void received(List<Long> ids);

    Map<String, Object> finishPurchase(PurchaseFinishVo purchaseFinishVo);

}

